package com.example.project3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName projects
 */
@TableName(value = "projects")
@Data
public class Projects implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId(value = "project_id", type = IdType.AUTO)
    private Integer projectId;
    /**
     * 此项目控制人（发起人），相当于群主。值为uid，即user.uid是此表的外键。
     */
    @TableField(value = "master_id")
    private Integer masterId;
    /**
     * name
     */
    @TableField(value = "name")
    private String name;
}